﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = LightweightFrames
		Module                         = mre 3000 lightweight frame prototype
		CpuUsage                       = 7.00 TF
		ReactorUsage                   = 3.00 RP
		Type                           = Passive
		Slot                           = Legs
		TechnologicalLevel             = T4P
		Mass                           = -30.00 %
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		DemobilizerResistance          = -24.00 %
		ArmorHitPoints                 = -26.50 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// MRE 3000 lightweight frame prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class Mre3000LightweightFramePrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="Mre3000LightweightFramePrototype"/> class.
        /// </summary>
        public Mre3000LightweightFramePrototype()
            : base(
            "MRE 3000 lightweight frame prototype",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.LightweightFrames,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(CpuUsage<double>),7.00),
				new LazyFeature(typeof(ReactorUsage<double>),3.00),
				new LazyFeature(typeof(ModuleMass<double>),2), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 2 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, -0.3 ){ Unit = UnitsEnum.Percentage, DisplayName = "Robot mass"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.DemobilizerResistance, -0.24 ){ Unit = UnitsEnum.Percentage, DisplayName = "Demobilizer resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ArmorAmount, -0.265 ){ Unit = UnitsEnum.Percentage, DisplayName = "Armor amount"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}